fix: link rendering and code highlights #219
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi thanks a lot for your work on exvcr! I was recently playing a bit with it and found some issues on the documentation, so I thought a PR would help you.
The readme has some links that are not rendering well on https://hexdocs.pm/exvcr, in addition some of the code examples use
Elixir
as language name, so the highlighting doesn't work.I've changed the links so that they render well on hexdocs and rexpect the existing
target="_blank"
.I've also changed the language in the codeblocks so that it is correctly highlighted on both hexdocs and GitHub.
Note
I was only able to get the docs rendered on Elixir 1.14. I tried 1.15 and 1.16 too, but they didn't work and I was always getting an error like this:
I imagined this might be an error on some of the rendering libraries used by
ex_docs
but I didn't want to have to upgrade them all.Links
Before
After
Code blocks
Before
After